(function(TYPES,typeId){
    function my_c(){
        var that = this;
        this.run=function(){
            var len = 10;
            var out = 0;
            var i = 0;
            var my_b = len;
            (function my_a(i){
                if (i < my_b) {
                    var a = i;
out+=a;
my_a(++i);
                } else {
                    that.onComplete(out);
                };
            })(i);
        }
        this.onComplete=function(result){
            return result;
        }
    }    TYPES.registerType(typeId,my_c);
})(RULES,"test3-1");
